﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class SumUtils
    {
        public void su(int a, int b)
        {
            Console.WriteLine("俩个数相加为："+ (a+b)); 
        }

        public void su(double a, double b)
        {
            Console.WriteLine("俩个小数相加为：" + (a + b));
        }
        public void su(string a, string b)
        {
            Console.WriteLine("俩个字符串相加为：" + (a + b));
        }
        public void su(int a)
        {
            int result = 0;
            for (int i = 1; i < a+1; i++)
            {
                result += i;
            }
            Console.WriteLine("从1加到{0}为：{1}",a,result);
        }
    }
}
